
// 主题样式
import themes from './theme.json'
 
export function addColor() {
    let key = localStorage.getItem("themeCode")
    const obj = themes[key || 'DEFAULT']
    // html 添加主题样式
    for (const key in obj) {
        document.documentElement.style.setProperty(key, obj[key]);
    }
}
